package lanqiao;


import java.util.Scanner;

public class SubtractExpression {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String expression = sc.nextLine();
        System.out.println(expression);
        String[] parts = expression.split("-");
        int a = Integer.parseInt(parts[0]);
        int b = Integer.parseInt(parts[1]);
        System.out.println(a-b);
    }
}
